export class FunctionPermissionSimpleData {
    // 整合销售菜单(APP 端试用)
    static salesRelatedMenu() {
        return {
            "menuCode": "M_Sales_Related_Orders",
            "name": "销售",
            "funCode": "F_Sales_Related_Orders",
            "excludeMenuTree": true,
        };
    }

    // 整合采购菜单(APP 端试用)
    static purchaseRelatedMenu() {
        return {
            "menuCode": "M_Purchase_Related_Orders",
            "name": "采购",
            "funCode": "F_Purchase_Related_Orders",
            "excludeMenuTree": true,
        };
    }

    // 整合往来菜单(app 端使用)
    static dealingPaymentReceipt() {
        return {
            "menuCode": "M_Dealing_Receipts_Payment",
            "name": "收付款",
            "funCode": "F_Dealing_Receipts_Payment",
            "excludeMenuTree": true,
        };
    }

    // 收支单菜单 (APP 使用)
    static directFundInout() {
        return {
            "menuCode": "M_Fund_Direct_InOut",
            "name": "日常收支",
            "funCode": "F_Fund_Direct_InOut",
            "excludeMenuTree": true,
        };
    }

    // 整合对账
    static statement() {
        return {
            "menuCode": "M_Fund_StatementMgt",
            "name": "对账",
            "funCode": "F_FundStatement"
        };
    }

    // 所有权限
    static simAllPermissionTree() {
        return {
            /*
            "permissions": [
              {"F_Commodity_Multi_Standard": "Multi Standard"},
              {"F_ShortCutMgt": "Edit"},
              {"F_PendingTasks": "Peding Task"},
              {"F_InventoryWarning": "Warning"},
              {"F_Messages": "F_Messages"}
            ],
            */
            "menuTree": [
                {
                    "menuCode": "M_OTHER_PERMISSION",
                    "funCode": "F_OTHER_PERMISSION",
                    "name": "其他权限",
                    "excludeMenuTree": true,
                    "permissionData": [
                        { "permissionCode": "F_Commodity_Multi_Standard", "name": "多规格商品" },
                        { "permissionCode": "F_ShortCutMgt", "name": "快捷菜单管理" },
                        { "permissionCode": "F_PendingTasks", "name": "待处理任务" },
                        { "permissionCode": "F_InventoryWarning", "name": "库存告急" },
                        { "permissionCode": "F_Messages", "name": "平台信息" },
                        { "permissionCode": "F_Sales_With_Tax_Set", "name": "销售含税设定" },
                        { "permissionCode": "F_Purchase_With_Tax_Set", "name": "采购含税设定" },
                        {
                            "permissionCode": "F_Purchase_Inventory_Method_Set",
                            "name": "采购入库方式设定"
                        },
                        {
                            "permissionCode": "F_Sales_Inventory_Method_Set",
                            "name": "销售出库方式设定"
                        },
                        { "permissionCode": "F_Multi_Warehouse_Set", "name": "多仓库设定" }
                    ]
                },
                {
                    "menuCode": "M_Home",
                    "funCode": "F_Home",
                    "name": "Home",
                    "excludePhoneMenu": true,
                    "permissionData": [
                        { "permissionCode": "P_Home_BasicInfo", "name": "基础信息" },
                        { "permissionCode": "P_Home_SalesData", "name": "销售数据" },
                        { "permissionCode": "P_Home_SalesTrendence", "name": "销售趋势" },
                        { "permissionCode": "P_Home_Pending_Receviement", "name": "应收款" }
                    ]
                },
                {
                    "menuCode": "M_Sales",
                    "name": "Sales",
                    "menuData": [
                        {
                            "menuCode": "M_Sales_Sales",
                            "name": "Sales",
                            "menuData": [
                                /*
                                {
                                  "menuCode": "M_Customer_Mgr_Info",
                                  "name": "客户",
                                  "funCode": "F_Customer",
                                  "permissionData": [
                                    {"permissionCode": "P_Customer_Read", "name": "查看"},
                                    {"permissionCode": "P_Customer_Fund_Read", "name": "资金查看"},
                                    {"permissionCode": "P_Customer_Edit", "name": "编辑"}
                                  ]
                                },
                                */
                                {
                                    "menuCode": "M_Sales_Sales_Quotation",
                                    "name": "报价",
                                    "funCode": "F_SalesQuotation",
                                    "permissionData": [
                                        { "permissionCode": "P_SalesQuotation_Read", "name": "查看" },
                                        { "permissionCode": "P_SalesQuotation_Edit", "name": "编辑" },
                                        { "permissionCode": "P_SalesQuotation_Audit", "name": "审核" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Sales_Sales_Contract",
                                    "excludePhoneMenu": true,
                                    "name": "Sales Contract",
                                    "funCode": "F_SalesContract",
                                    "permissionData": [
                                        { "permissionCode": "P_SalesContract_Read", "name": "查看" },
                                        { "permissionCode": "P_SalesContract_Edit", "name": "编辑" },
                                        { "permissionCode": "P_SalesContract_Audit", "name": "审核" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Sales_Sales_Return",
                                    "excludePhoneMenu": true,
                                    "name": "Sales Return",
                                    "funCode": "F_SalesReturn",
                                    "permissionData": [
                                        { "permissionCode": "P_SalesReturn_Read", "name": "查看" },
                                        { "permissionCode": "P_SalesReturn_Edit", "name": "编辑" },
                                        { "permissionCode": "P_SalesReturn_Audit", "name": "审核" }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "menuCode": "M_Purchase",
                    "name": "Purchase",
                    "menuData": [
                        {
                            "menuCode": "M_Purchase_Purchase",
                            "name": "Purchase",
                            "menuData": [
                                {
                                    "menuCode": "M_Purchase_Supplier_Mgr",
                                    "name": "Suplier",
                                    "funCode": "F_SupplierMgr",
                                    "permissionData": [
                                        { "permissionCode": "P_Supplier_Read", "name": "查看" },
                                        { "permissionCode": "P_Supplier_Fund_Read", "name": "资金查看" },
                                        { "permissionCode": "P_Supplier_Edit", "name": "编辑" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Purchase_Purchase_Contract",
                                    "excludePhoneMenu": true,
                                    "name": "Purchase Contract",
                                    "funCode": "F_PurchaseContract",
                                    "permissionData": [
                                        { "permissionCode": "P_PurchaseContract_Read", "name": "查看" },
                                        { "permissionCode": "P_PurchaseContract_Edit", "name": "编辑" },
                                        { "permissionCode": "P_PurchaseContract_Audit", "name": "审核" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Purchase_Purchase_Return",
                                    "excludePhoneMenu": true,
                                    "name": "Purchase Return",
                                    "funCode": "F_PurchaseReturn",
                                    "permissionData": [
                                        { "permissionCode": "P_PurchaseReturn_Read", "name": "查看" },
                                        { "permissionCode": "P_PurchaseReturn_Edit", "name": "编辑" },
                                        { "permissionCode": "P_PurchaseReturn_Audit", "name": "审核" }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "menuCode": "M_Inventory",
                    "name": "Inventory",
                    "menuData": [
                        {
                            "menuCode": "M_Inventory_Doc",
                            "name": "Inventory Info",
                            "menuData": [
                                {
                                    "menuCode": "M_InventoryInMgt",
                                    "name": "Godown Entry",
                                    "funCode": "F_InventoryInMgt",
                                    "permissionData": [
                                        { "permissionCode": "P_InventoryIn_Read", "name": "查看" },
                                        {
                                            "permissionCode": "P_InventoryIn_Price_Read",
                                            "name": "价格查看"
                                        },
                                        { "permissionCode": "P_InventoryIn_Edit", "name": "编辑" },
                                        { "permissionCode": "P_InventoryIn_Audit", "name": "审核" }
                                    ]
                                },
                                {
                                    "menuCode": "M_InventoryOutMgt",
                                    "name": "Outbound Order",
                                    "funCode": "F_InventoryOutMgt",
                                    "permissionData": [
                                        { "permissionCode": "P_InventoryOut_Read", "name": "查看" },
                                        {
                                            "permissionCode": "P_InventoryOut_Price_Read",
                                            "name": "价格查看"
                                        },
                                        { "permissionCode": "P_InventoryOut_Edit", "name": "编辑" },
                                        { "permissionCode": "P_InventoryOut_Audit", "name": "审核" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Inventory_Doc_Check",
                                    "name": "Inventory Sheet",
                                    "funCode": "F_InventoryCheck",
                                    "permissionData": [
                                        { "permissionCode": "P_InventorySheet_Read", "name": "查看" },
                                        { "permissionCode": "P_InventorySheet_Edit", "name": "编辑" },
                                        { "permissionCode": "P_InventorySheet_Audit", "name": "审核" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Inventory_Doc_Allocate",
                                    "name": "Inventory Allocate",
                                    "funCode": "F_InventoryAllocate",
                                    "permissionData": [
                                        {
                                            "permissionCode": "P_InventoryTransfer_Read",
                                            "name": "查看"
                                        },
                                        {
                                            "permissionCode": "P_InventoryTransfer_Edit",
                                            "name": "编辑"
                                        },
                                        {
                                            "permissionCode": "P_InventoryTransfer_Audit",
                                            "name": "审核"
                                        }
                                    ]
                                },
                                {
                                    "menuCode": "M_Inventory_Doc_Assembler",
                                    "name": "组装拆卸单",
                                    "funCode": "F_InventoryAssembler",
                                    "permissionData": [
                                        {
                                            "permissionCode": "P_InventoryAssembler_Read",
                                            "name": "查看"
                                        },
                                        {
                                            "permissionCode": "P_InventoryAssembler_Edit",
                                            "name": "编辑"
                                        },
                                        {
                                            "permissionCode": "P_InventoryAssembler_Audit",
                                            "name": "审核"
                                        }
                                    ]
                                }
                            ]
                        },
                        {
                            "menuCode": "M_Inventory_Mgr",
                            "name": "Inventory Mgt",
                            "menuData": [
                                {
                                    "menuCode": "M_Inventory_Mgr_Inquiry",
                                    "name": "Inventory Inquiry",
                                    "funCode": "F_InventoryInquiry"
                                },
                                {
                                    "menuCode": "M_Inventory_Mgr_InOutRecord",
                                    "name": "Inventory Record",
                                    "funCode": "F_InventoryInOutRecord"
                                },
                                {
                                    "menuCode": "M_Inventory_Mgr_Wares",
                                    "name": "Warehouse",
                                    "funCode": "F_WareMgr",
                                    "permissionData": [
                                        { "permissionCode": "P_Warehouse_Read", "name": "查看" },
                                        { "permissionCode": "P_Warehouse_Edit", "name": "编辑" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Inventory_Types",
                                    "excludePhoneMenu": true,
                                    "excludeShortcut": true,
                                    "name": "Inventory Types",
                                    "funCode": "F_InventoryTypes",
                                    "permissionData": [
                                        { "permissionCode": "P_InventoryTypes_Read", "name": "查看" },
                                        { "permissionCode": "P_InventoryTypes_Edit", "name": "编辑" }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "menuCode": "M_Customer",
                    "name": "Customer",
                    "menuData": [
                        {
                            "menuCode": "M_Customer_Mgr",
                            "name": "Customer Mgt",
                            "menuData": [
                                {
                                    "menuCode": "M_Customer_Mgr_Info",
                                    "name": "Customer Info",
                                    "funCode": "F_Customer",
                                    "permissionData": [
                                        { "permissionCode": "P_Customer_Read", "name": "查看" },
                                        { "permissionCode": "P_Customer_Fund_Read", "name": "资金查看" },
                                        { "permissionCode": "P_Customer_Edit", "name": "编辑" }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "menuCode": "M_Fund",
                    "name": "Fund",
                    "menuData": [
                        {
                            "menuCode": "M_Fund_Fund",
                            "name": "资金",
                            "menuData": [
                                {
                                    "menuCode": "M_Fund_Account_Receipts",
                                    "excludePhoneMenu": true,
                                    "name": "Receipts",
                                    "funCode": "F_AccountReceipts",
                                    "permissionData": [
                                        { "permissionCode": "P_DealingReceive_Read", "name": "查看" },
                                        { "permissionCode": "P_DealingReceive_Edit", "name": "编辑" },
                                        { "permissionCode": "P_DealingReceive_Audit", "name": "审核" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Fund_Account_Payment",
                                    "excludePhoneMenu": true,
                                    "name": "Payment",
                                    "funCode": "F_AccountPayment",
                                    "permissionData": [
                                        { "permissionCode": "P_DealingPayment_Read", "name": "查看" },
                                        { "permissionCode": "P_DealingPayment_Edit", "name": "编辑" },
                                        { "permissionCode": "P_DealingPayment_Audit", "name": "审核" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Fund_Fund_Income",
                                    "excludePhoneMenu": true,
                                    "name": "Income",
                                    "funCode": "F_FundIncome",
                                    "permissionData": [
                                        { "permissionCode": "P_DirectFundIn_Read", "name": "查看" },
                                        { "permissionCode": "P_DirectFundIn_Edit", "name": "编辑" },
                                        { "permissionCode": "P_DirectFundIn_Audit", "name": "审核" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Fund_Fund_Expenditure",
                                    "excludePhoneMenu": true,
                                    "name": "Expenditure",
                                    "funCode": "F_FundExpenditure",
                                    "permissionData": [
                                        { "permissionCode": "P_DirectFundOut_Read", "name": "查看" },
                                        { "permissionCode": "P_DirectFundOut_Edit", "name": "编辑" },
                                        { "permissionCode": "P_DirectFundOut_Audit", "name": "审核" }
                                    ]
                                }
                            ]
                        },
                        {
                            "menuCode": "M_Fund_StatementMgt",
                            "name": "对账",
                            "funCode": "F_FundStatement",
                            "menuData": [
                                {
                                    "menuCode": "M_Customer_Fund_StatementMgt",
                                    "excludePhoneMenu": true,
                                    "name": "客户对账",
                                    "funCode": "F_Customer_FundStatement",
                                },
                                {
                                    "menuCode": "M_Supplier_Fund_StatementMgt",
                                    "excludePhoneMenu": true,
                                    "name": "供应商对账",
                                    "funCode": "F_Supplier_FundStatement",
                                }
                            ]
                        },
                        {
                            "menuCode": "M_Fund_Account",
                            "name": "账目",
                            "menuData": [
                                {
                                    "menuCode": "M_Fund_Fund_Account",
                                    "name": "Account",
                                    "funCode": "F_FundAccount"
                                },
                                {
                                    "menuCode": "M_Fund_Fund_AccountMgt",
                                    "name": "账户管理",
                                    "funCode": "F_FundAccountMgt",
                                    "permissionData": [
                                        { "permissionCode": "P_FundAccount_Read", "name": "查看" },
                                        { "permissionCode": "P_FundAccount_Edit", "name": "编辑" }
                                    ]
                                }
                            ]
                        },
                        {
                            "menuCode": "M_Fund_FundType",
                            "name": "Fund Types",
                            "funCode": "F_Fund_FundType",
                            "excludePhoneMenu": true,
                            "excludeShortcut": true,
                            "excludePermissionAssignSubMenu": true,
                            "menuData": [
                                {
                                    "menuCode": "M_Fund_Fund_IncomeType",
                                    "name": "Income Type",
                                    "funCode": "F_FundIncomeType",
                                    "permissionData": [
                                        { "permissionCode": "P_DirectFundTypeIn_Read", "name": "查看" },
                                        { "permissionCode": "P_DirectFundTypeIn_Edit", "name": "编辑" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Fund_Fund_ExpenditureType",
                                    "name": "Expenditure Type",
                                    "funCode": "F_FundExpenditureType",
                                    "permissionData": [
                                        {
                                            "permissionCode": "P_DirectFundTypeOut_Read",
                                            "name": "查看"
                                        },
                                        { "permissionCode": "P_DirectFundTypeOut_Edit", "name": "编辑" }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "menuCode": "M_Statics",
                    "name": "Statistics",
                    "excludePhoneMenu": false,
                    "menuData": [
                        {
                            "menuCode": "M_Statics_Analysis",
                            "name": "Analysis",
                            "menuData": [
                                {
                                    "menuCode": "M_Statics_Analysis_OperationData",
                                    "name": "Operation",
                                    "funCode": "F_OperationDataAnalysis"
                                },
                                {
                                    "menuCode": "M_Statics_Analysis_SalesData",
                                    "name": "Sales",
                                    "funCode": "F_SalesDataAnalysis"
                                },
                                {
                                    "menuCode": "M_Statics_Analysis_ExpenditureData",
                                    "name": "Expenditure",
                                    "funCode": "F_ExpenditureDataAnalysis"
                                }
                            ]
                        }
                    ]
                },
                {
                    "menuCode": "M_BasicData",
                    "name": "Basic Data",
                    "excludePhoneMenu": true,
                    "excludeShortcut": true,
                    "menuData": [
                        {
                            "menuCode": "M_Set_CommodityMgr",
                            "name": "Commodity Mgt",
                            "menuData": [
                                {
                                    "menuCode": "M_Set_CommodityMgr_Attribute",
                                    "name": "Commodity Attribute",
                                    "funCode": "F_CommodityAtttribute",
                                    "permissionData": [
                                        {
                                            "permissionCode": "P_CommodityAtttribute_Read",
                                            "name": "查看"
                                        },
                                        {
                                            "permissionCode": "P_CommodityAtttribute_Edit",
                                            "name": "编辑"
                                        }
                                    ]
                                },
                                {
                                    "menuCode": "M_Set_CommodityMgr_Category",
                                    "name": "Commodity Category",
                                    "funCode": "F_CommodityCategory",
                                    "permissionData": [
                                        {
                                            "permissionCode": "P_CommodityCategory_Read",
                                            "name": "查看"
                                        },
                                        { "permissionCode": "P_CommodityCategory_Edit", "name": "编辑" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Set_CommodityMgr_Data",
                                    "name": "Commodity Data",
                                    "funCode": "F_CommodityData",
                                    "permissionData": [
                                        { "permissionCode": "P_Commodity_Read", "name": "基础信息查看" },
                                        { "permissionCode": "P_Commodity_Edit", "name": "基础信息编辑" },
                                        {
                                            "permissionCode": "P_CommodityAtttribute_CostRead",
                                            "name": "成本查看"
                                        },
                                        {
                                            "permissionCode": "P_CommodityAtttribute_CostEdit",
                                            "name": "成本编辑"
                                        },
                                        {
                                            "permissionCode":
                                                "P_CommodityAtttribute_InventorySumEdit",
                                            "name": "库存编辑"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "menuCode": "M_EnterpriseMgt",
                    "name": "Enterprise Mgt",
                    "menuData": [
                        {
                            "menuCode": "M_EnterpriseMgt_Org",
                            "name": "Orgnization Mgt",
                            "menuData": [
                                {
                                    "menuCode": "M_EnterpriseMgt_Org_StoreMgt",
                                    "name": "门店管理",
                                    "funCode": "F_EnterpriseMgt_Org_StoreMgt",
                                    "permissionData": [
                                        { "permissionCode": "P_Store_Read", "name": "查看" },
                                        { "permissionCode": "P_Store_Edit", "name": "编辑" },
                                        { "permissionCode": "P_Store_Retail", "name": "零售参数" }
                                    ]
                                },
                                {
                                    "menuCode": "M_EnterpriseMgt_Org_EmployeeMgt",
                                    "name": "Employee Mgt",
                                    "funCode": "F_EnterpriseMgt_Org_EmployeeMgt",
                                    "permissionData": [
                                        { "permissionCode": "P_Employee_Read", "name": "查看" },
                                        { "permissionCode": "P_Employee_Edit", "name": "编辑" }
                                    ]
                                },
                                {
                                    "menuCode": "M_EnterpriseMgt_Org_Role",
                                    "name": "Role Mgt",
                                    "funCode": "F_EnterpriseMgt_Org_Role"
                                }
                            ]
                        }
                    ]
                },
                {
                    "menuCode": "M_Set",
                    "name": "Setting",
                    "menuData": [
                        {
                            "menuCode": "M_Set_MERCHANT",
                            "name": "Merchant Set",
                            "menuData": [
                                {
                                    "menuCode": "M_Set_MERCHANT_ORG",
                                    "name": "Merchant Set",
                                    "funCode": "F_MerchantSet"
                                },
                                {
                                    "menuCode": "M_Balance_MOD",
                                    "name": "结算模式",
                                    "funCode": "F_BalanceModeSet",
                                    "permissionData": [
                                        { "permissionCode": "P_BalanceModeSet_Read", "name": "查看" },
                                        { "permissionCode": "P_BalanceModeSet_Edit", "name": "编辑" }
                                    ]
                                },
                                {
                                    "menuCode": "M_Set_Retail",
                                    "name": "零售参数",
                                    "funCode": "F_RetailSet"
                                }
                            ]
                        },
                        {
                            "menuCode": "M_Set_PRINTER",
                            "name": "Printer Set",
                            "excludePhoneMenu": true,
                            "excludeShortcut": true,
                            "menuData": [
                                {
                                    "menuCode": "M_Set_PRINTER_Set",
                                    "name": "Printer Set",
                                    "funCode": "F_PrinterSet"
                                }
                            ]
                        },
                        {
                            "menuCode": "M_Set_DATAINITIATOR",
                            "name": "期初设置",
                            "excludePhoneMenu": true,
                            "menuData": [
                                {
                                    "menuCode": "M_Set_CommodityInitiator_Set",
                                    "name": "商品期初设置",
                                    "funCode": "F_CommodityInitiatorSet"
                                },
                                {
                                    "menuCode": "M_Set_CustomerInitiator_Set",
                                    "name": "客户期初设置",
                                    "funCode": "F_CustomerInitiatorSet"
                                },
                                {
                                    "menuCode": "M_Set_SupplierInitiator_Set",
                                    "name": "供应商期初设置",
                                    "funCode": "F_SupplierInitiatorSet"
                                }
                            ]
                        }
                    ]
                }
            ]
        };
    }
}